/**
 * @(#)MaiMaiInfoController.java 2018年4月3日
 * Copyright(C) 2018年4月3日 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.action;


import java.util.List;

import org.jsbd.boss.common.ResponseMapUtils;
import org.jsbd.boss.service.IMaiMaiService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 脉脉数据获取相关
 * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
 * @version 1.0.0
 */
@Controller
@RequestMapping("/maimai")
public class MaiMaiInfoController {
	public static final Logger LOGGER = LoggerFactory.getLogger(MaiMaiInfoController.class);

	@Autowired
	private IMaiMaiService maiMaiService;
	
	@RequestMapping(value = "/get/phone/name")
	@ResponseBody
	public Object getPhoneAndNickName(String province,String city) {
		List<String> resultList=maiMaiService.getPhoneAndNickName(province,city);
		if(resultList==null||resultList.isEmpty()){
			return ResponseMapUtils.responseFail("根据省份城市信息获取不到手机号码");
		}
		return ResponseMapUtils.responseSuccess(resultList);
	}


}
